package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient("gulimall-cart")    //标明要调用哪个远程服务
public interface CartFeignService {
    /**
     * 获取用户购物车里所有选中的购物项的数据
     */
    @GetMapping("/currentUserCartItems")    //标明调用远程服务中的哪个功能
    List<OrderItemVo> getCurrentUserCartItems();
}
